import {
  defineConfig,
  presetIcons,
  presetUno,
  transformerDirectives,
  transformerVariantGroup,
} from 'unocss'

// https://unocss.dev/config

const spacing = {
  xs: '4px',
  sm: '8px',
  md: '16px',
  lg: '24px',
  xl: '48px',
}

export default defineConfig({
  shortcuts: [],
  theme: {
    spacing,
  },
  presets: [
    presetUno(),
    presetIcons(),
  ],
  transformers: [
    transformerDirectives(), // https://unocss.dev/transformers/directives
    transformerVariantGroup(), // https://unocss.dev/transformers/variant-group
  ],
})
